package Day9;

import java.util.Scanner;
//1:无需package
//2: 类名必须Main, 不可修改

/**
 * 2021Java真题:双阶乘
 * https://www.lanqiao.cn/problems/2366/learning/
 */
public class Main2 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        long sum=2021;
        for (long i = 1; i < 2021; i+=2) {
            sum*=i;
            sum=sum%100000;
        }
        System.out.println(sum);
    }
}